home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Applications / file encode_decode 0.1d5 / file format draft < prev   
Text File  |  1998-07-06  |  694b  |  24 lines

  1. version                                    (2 bytes)
  2. type                                    (4 bytes)
  3. creator                                    (4 bytes)
  4.  
  5. data fork
  6. (data fork information is recorded whether or not any data is in the data fork)
  7.     <DF>                                (4 bytes)
  8.     data fork length                    (4 bytes)
  9.     data fork data                        (data fork length)
  10.  
  11. (if there is no resource fork then the file will end here)
  12. resource fork
  13.     resource type                        (4 bytes)
  14.     resource id                            (4 bytes)
  15.     resource name length                (2 bytes)
  16.     resource name                        (resource name length)
  17.     resource data length                (4 bytes)
  18.     resource data                        (resource data length)
  19.     purgeable? 0/1                        (1 byte)
  20.     preload? 0/1                        (1 byte)
  21.     locked? 0/1                            (1 byte)
  22.     protected? 0/1                        (1 byte)
  23.     sysheap? 0/1                        (1 byte)
  24.